package com.design.builder.role;

class Client {

    public static void main(String[] args) {

        ActorBuilder ab = new HeroBuilder(); //针对抽象建造者编程

        ActorController ac = new ActorController();

        Actor actor = ac.construct(ab); //通过指挥者创建完整的建造者对象


        System.out.println(actor.getType() + "的外观：");

        System.out.println("性别：" + actor.getSex());

        System.out.println("面容：" + actor.getFace());

        System.out.println("服装：" + actor.getCostume());

        System.out.println("发型：" + actor.getHairstyle());

    }

}